package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserBeautyData extends DataObject {

    private long userId;
    /**
     * 精力值
     */
    private int energy;
    /**
     * 最近恢复时间
     */
    private long lastRestoreTime;

    private int noMakeChildTimes;       //没生孩子次数（生孩子后重置）

    private long totalFateSkillUpgradeTimes;      //缘分技能升级次数

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getEnergy() {
        return energy;
    }

    public void setEnergy(int energy) {
        if (this.energy != energy) {
            this.energy = energy;
            setUpdateOption();
        }
    }

    public long getLastRestoreTime() {
        return lastRestoreTime;
    }

    public void setLastRestoreTime(long lastRestoreTime) {
        if (lastRestoreTime != this.lastRestoreTime) {
            this.lastRestoreTime = lastRestoreTime;
            setUpdateOption();
        }
    }

    public int getNoMakeChildTimes() {
        return noMakeChildTimes;
    }

    public void setNoMakeChildTimes(int noMakeChildTimes) {
        if(this.noMakeChildTimes != noMakeChildTimes) {
            this.noMakeChildTimes = noMakeChildTimes;
            setUpdateOption();
        }
    }

    public long getTotalFateSkillUpgradeTimes() {
        return totalFateSkillUpgradeTimes;
    }

    public void setTotalFateSkillUpgradeTimes(long totalFateSkillUpgradeTimes) {
        if(this.totalFateSkillUpgradeTimes != totalFateSkillUpgradeTimes) {
            this.totalFateSkillUpgradeTimes = totalFateSkillUpgradeTimes;
            setUpdateOption();
        }
    }
}
